import Vue from 'vue'
import VueRouter from 'vue-router'

import dashboard from './modules/dashboard'

import operateLog from './modules/operateLog'

import user from './modules/user'
import node from './modules/node'
import routeAuth from './modules/routeAuth'
import edge from './modules/edge'
import gpu from './modules/gpu'
import product from './modules/product'
import image from './modules/image'
import images from './modules/images'
import market from './modules/market'
import notfount from '@/views/404'
import model_eva_type from './modules/modelEvaType'
import model from './modules/model'
// import gameTask from './modules/gameTask'
import task from './modules/task'
import dataset from './modules/dataset'
import notebook from './modules/notebook'
import gameExperiment from './modules/gameExperiment'
import modelTestt from './modules/modelTestt'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/dashboard',
  },
  ...dashboard,
  ...routeAuth,
  ...user,
  ...node,
  ...edge,
  ...gpu,
  ...product,
  ...image,
  ...model_eva_type,
  ...market,
  ...operateLog,
  ...model,
  ...task,
  ...images,
  ...dataset,
  ...notebook,
  ...gameExperiment,
  ...modelTestt,


  {
    path: '*',
    name: 'notfount',
    component: notfount
  }
]
const router = new VueRouter({
  routes
})
export default router
